<style lang="scss" scoped="">

  .content{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-content:flex-start;
    flex-wrap:wrap;
    overflow-y: auto;
  }
  .dropdown_btn{
    width: 100%;
    height:30px;
    background-color: rgba(0,0,0,0);
    border:none;
    font-size: 14px;
  }
  .dropdown_btn:focus{
    outline:0;
  }
  .dropdown_btn:hover{
    background-color: gainsboro;
  }
  .entry{
    width: 33.33%;
    height: 250px;
    padding-right: 7px;
    padding-left: 7px;
    padding-bottom: 14px;
    .entry_inner{
      background-color: white;
      height: 100%;
      width: 100%;
      box-shadow: 1px 1px 2px rgba(68,68,68,0.1),-1px -1px 2px rgba(68,68,68,0.1);
    }
    .des{
      padding-left: 11px;
      padding-top: 10px;
      font-size: 10px;
      color:rgb(150,150,150);
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }

  .info_right{
    padding-right: 17px;

    display: flex;
    align-items:center;
    justify-content:flex-end;
    flex-wrap: nowrap;

  }
</style>
<template>
    <mpage>
        <mheader/>
        <minfo/>

        <mcontainer>
            <div style="background:#eee;padding: 20px ; height: 500px" >
             <Upload  action="http://192.168.78.145:8084/file-manager/file"
                      :on-error="onError"
                     >
               <Button icon="ios-cloud-upload-outline" >点击上传附件</Button>
             </Upload>
            </div>
        </mcontainer>
    </mpage>
</template>

<script>
  import mcontainer from '../comp_chatter/mcontainer'
  import Axios from 'axios'
  import mheader from "../comp_chatter/mheader"
import minfo from "../comp_chatter/minfo"
import mpage from "../comp_chatter/mpage"
    export default {
        components:{
            mheader  ,mcontainer,minfo,mpage
    },
    props:{

    },
    data() {
      return {
      }
    },
    mounted() {

    },
    methods: {
      onError(error, file, fileList){
        this.$Notice.error({
          title: '上传文件失败',
          desc:  '请注意文件名长度以及文件格式是否符合要求，如不能解决请联系管理员进行处理'+this.action
        });
        console.log(error)
      }

    }
  }
</script>
